package com.tocean.app.entity.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Table(name = "paper_topic")
public class PaperTopic implements Serializable {

    @ApiModelProperty("ID(主键)")
    @NotBlank(message = "ID不能为空")
    @Id
    @GeneratedValue()
    private Long Id;

    @ApiModelProperty("关联ID")
    @NotBlank(message = "关联ID不能为空")
    private String paperId;

    @ApiModelProperty("题目ID")
    @NotBlank(message = "题目ID不能为空")
    private String topicId;



}
